package com.ld.control.business.queue.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serial;
import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 用于放一些命令节点的待处理记录，如：delay、waitFor
 * </p>
 *
 * @author wangfeng
 * @since 2024-06-13
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("pending_node_queue")
@Schema(description = "PendingNodeQueueModel对象")
public class PendingNodeQueueModel implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @Schema(description = "节点实例id")
    private Long processNodeExampleId;

    @Schema(description = "节点名称")
    private String nodeName;

    @Schema(description = "创建时间")
    private Date createTime;

    public static final String ID = "id";

    public static final String PROCESS_NODE_EXAMPLE_ID = "process_node_example_id";

}
